package com.cloudfun.campusshare.configuration.config;

import com.cloudfun.campusshare.common.constant.BaseConstant;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Huqin on 2020/6/9
 */
@Configuration
public class ThreadPoolConfig implements DisposableBean {

    @Override
    public void destroy() throws Exception {
        BaseConstant.SCHEDULED_EXECUTOR.shutdownNow();
    }
}
